# -*- coding:utf-8 -*-
# import sys
# reload(sys)
# sys.setdefaultencoding('utf-8')
# import pickle
# from demo.config import companySuffixFile
#
# pkl_file = open(companySuffixFile, 'rb')
# companySuffix = pickle.load(pkl_file)
# pkl_file.close()
#
# class startEnd(object):
#     def __init__(self):
#         self.start=None
#         self.end=None
#     def isIncludeSuffic(self,listItem,target):
#         for item in listItem:
#             if target.endswith(item):
#                 self.end=target.index(item)+len(item)
#                 return True
#         return False
#
#     def isIncludeRegion(self,listItem,target):
#         for item in listItem:
#             if item in target and target.find(item)==0:
#                 self.start=target.index(item)
#
#                 return True
#         return False
#
#     def outputCompanyName(self,target):
#         return target[self.start:self.end]